// 获取顶部自定义导航信息
export const useDevice = () => {
  const deviceInfo = uni.getSystemInfoSync()
  const navBarHeight = 44
  const navBarHeightNew =
    (navBarHeight * 750) / uni.getSystemInfoSync().windowWidth

  return {
    innerWidth: deviceInfo.screenWidth,
    system: deviceInfo.system,
    barHeight: navBarHeightNew,
    statusbarHeight: deviceInfo?.statusBarHeight || 0,
  }
}
